package cn.tedu.csmall.server.exception;

/**
 * @author lixin
 * @Date 2022/9/6
 * 业务异常类
 */
public class ServiceException extends RuntimeException {

    private Integer serviceCode;

    public ServiceException(Integer serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public Integer getServiceCode(){
        return  this.serviceCode;
    }
}
